<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./index.css" />
  </head>
  <body>
    <!-- 数据录入模块 -->
    <form id="data">
      <h3>图书录入</h3>
      <div>图书名：<input type="text" name="bookname" class="bookname" /></div>
      <div>
        作者名：<input type="text" name="authorname" class="authorname" />
      </div>
      <div>
        出版社：<input type="text" name="pressname" class="pressname" />
      </div>
      <div>
        书类别：<input
          minlength="1"
          maxlength="6"
          type="number"
          name="category"
          class="category"
        />
      </div>
      <div>
        <button class="addbook">添加</button>
      </div>
    </form>
    <div class="list">
      <div class="search">
        <input type="text" placeholder="请输入书名进行查询" name="search" />
        <button class="serbook">查询</button>
        <button class="cancel">取消查询</button>
      </div>
      <table>
        <caption>
          <h3>图书列表</h3>
        </caption>
        <thead>
          <tr>
            <th>编号</th>
            <th>书名</th>
            <th>作者</th>
            <th>出版社</th>
            <th>图书分类</th>
            <th>录入时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <!-- 测试数据 -->
          <tr>
            <td>1</td>
            <td>三体</td>
            <td>刘慈欣</td>
            <td>重庆出版社</td>
            <td>科幻</td>
            <td>2023/4/5 21:18:11</td>
            <td><a class="shanchu" href="javascript:;">删除</a></td>
          </tr>
        </tbody>
      </table>
    </div>
    <script src="./index.js"></script>
  </body>
</html>
